package com.only4play.practice.park.core.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.only4play.codegen.support.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author mengdy
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PkCarEnterRecord extends BaseEntity {

    @ApiModelProperty(value = "停车场id")
    @ExcelIgnore
    private Long parkId;

    @ApiModelProperty(value = "停车场名称")
    @ExcelProperty(value = "停车场名称",index = 1)
    @ColumnWidth(25)
    private String parkName;

    @ApiModelProperty(value = "车牌号1")
    @ExcelProperty(value = "车牌号码1",index = 3)
    @ColumnWidth(15)
    private String plateOne;

    @ApiModelProperty(value = "入场时间")
    @ExcelProperty(value = "入场时间",index = 11)
    @ColumnWidth(20)
    private Date inTime;

    @ApiModelProperty(value = "入场通道id")
    @ExcelIgnore
    private Long channelId;

    @ApiModelProperty(value = "入场通道名称")
    @ExcelProperty(value = "入场通道",index = 2)
    @ColumnWidth(15)
    private String channelName;

    @ApiModelProperty(value = "进场车辆图片")
    @ExcelIgnore
    private String photo;

    @ApiModelProperty(value = "进场方式 1=自动放行 2=岗亭放行 3=手持机放行 4=扫码进场 5=岗亭端手动入场 6=网页端（手动补录） 7=云坐席手动入场 8=云坐席确认放行")
    private Integer inWay;

    @ApiModelProperty(value = "入场操作人")
    private String inHandleUser;

    @ApiModelProperty(value = "数据来源 1=移动管理端 2=岗亭端 3=新泊乐推送 4=重复入场 5=物联停车")
    private Integer source;
}
